#! /usr/bin/env python3

from distutils.core import setup

# Futz with the path so we can import metadata.
import sys
sys.path.insert(0, './src')
from prattle import __version__, __author__, __author_email__

setup(
    name = "prattle",
    package_dir={'': 'src'},
    py_modules = ['prattle']
    # packages = []
    version = __version__,
    author = __author__,
    author_email = __author_email__,
    url = 'http://code.google.com/p/prattle/',
    keywords = ["text input", "cli", "menu", "answer", "ask",],
    description = "Text input functions for command-line applications",
    long_description = """\
Text input functions for command-line applications
--------------------------------------------------

Prattle is a pure-Python module providing text input functions suitable for
getting input from the user in command-line applications.

Features include:

    * Extensible class-based implementation.
    * Command-line text-based menus.
    * Hooks for menu actions and invalid responses.
    * Integrates with readline for advanced editing functionality when 
      available.
    * "answer" function which provides the user with a menu of responses.
    * "ask" function which allows the user to give free text responses.
    * Help is displayed if the user makes an invalid menu selection.
    * Functions are highly configurable.

Prattle works with both Python 2.x and 3.x from a single code base. Requires
Python 2.4 or better.
""",
    license = 'MIT',  # apologies for the American spelling
    classifiers = [
        "Development Status :: 3 - Alpha",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2.4",
        "Programming Language :: Python :: 2.5",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3.1",
        "Programming Language :: Python :: 3.2",
        "Programming Language :: Python :: 3.3",
        "Environment :: Other Environment",
        "Intended Audience :: Developers",
        "Operating System :: OS Independent",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "License :: OSI Approved :: MIT License",
        ],
    )

